package cn.yunhe.entity;

import java.io.Serializable;

/**
 * 商品实体类
 */
public class Product implements Serializable {
    private int productid;//商品编号
    private String productname;//商品名称
    private double price;//价格
    private String pic;//图片
    private int store;//库存
    private String brand;//商品的牌子
    private int barcode;//条形码
    private ChildType childType;//     所属子类别


    public Product(String productname, double price, String pic, int store, String brand, int barcode, ChildType childType) {
        this.productname = productname;
        this.price = price;
        this.pic = pic;
        this.store = store;
        this.brand = brand;
        this.barcode = barcode;
        this.childType = childType;
    }

    public Product(int productid, String productname, double price, String pic, int store, String brand, int barcode, ChildType childType) {
        this.productid = productid;
        this.productname = productname;
        this.price = price;
        this.pic = pic;
        this.store = store;
        this.brand = brand;
        this.barcode = barcode;
        this.childType = childType;
    }

    public Product() {
    }

    public ChildType getChildType() {
        return childType;
    }

    public void setChildType(ChildType childType) {
        this.childType = childType;
    }

    public int getProductid() {
        return productid;
    }

    public void setProductid(int productid) {
        this.productid = productid;
    }

    public String getProductname() {
        return productname;
    }

    public void setProductname(String productname) {
        this.productname = productname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public int getStore() {
        return store;
    }

    public void setStore(int store) {
        this.store = store;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getBarcode() {
        return barcode;
    }

    public void setBarcode(int barcode) {
        this.barcode = barcode;
    }
}
